<%@ page import="ihotel.Hospede" %>



<div class="fieldcontain ${hasErrors(bean: hospedeInstance, field: 'nome', 'error')} required">
	<label for="nome">
		<g:message code="hospede.nome.label" default="Nome" />
		<span class="required-indicator">*</span>
	</label>
	<g:textField name="nome" required="" value="${hospedeInstance?.nome}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: hospedeInstance, field: 'rg', 'error')} required">
	<label for="rg">
		<g:message code="hospede.rg.label" default="Rg" />
		<span class="required-indicator">*</span>
	</label>
	<g:textField name="rg" required="" value="${hospedeInstance?.rg}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: hospedeInstance, field: 'cpf', 'error')} required">
	<label for="cpf">
		<g:message code="hospede.cpf.label" default="Cpf" />
		<span class="required-indicator">*</span>
	</label>
	<g:textField name="cpf" required="" value="${hospedeInstance?.cpf}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: hospedeInstance, field: 'dataNascimento', 'error')} required">
	<label for="dataNascimento">
		<g:message code="hospede.dataNascimento.label" default="Data Nascimento" />
		<span class="required-indicator">*</span>
	</label>
	<g:datePicker name="dataNascimento" precision="day"  value="${hospedeInstance?.dataNascimento}"  />
</div>

<div class="fieldcontain ${hasErrors(bean: hospedeInstance, field: 'logradouro', 'error')} required">
	<label for="logradouro">
		<g:message code="hospede.logradouro.label" default="Logradouro" />
		<span class="required-indicator">*</span>
	</label>
	<g:textField name="logradouro" required="" value="${hospedeInstance?.logradouro}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: hospedeInstance, field: 'numero', 'error')} ">
	<label for="numero">
		<g:message code="hospede.numero.label" default="Numero" />		
	</label>
	<g:textField name="numero" value="${hospedeInstance?.numero}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: hospedeInstance, field: 'bairro', 'error')} required">
	<label for="bairro">
		<g:message code="hospede.bairro.label" default="Bairro" />
		<span class="required-indicator">*</span>
	</label>
	<g:textField name="bairro" required="" value="${hospedeInstance?.bairro}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: hospedeInstance, field: 'cidade', 'error')} required">
	<label for="cidade">
		<g:message code="hospede.cidade.label" default="Cidade" />
		<span class="required-indicator">*</span>
	</label>
	<g:select id="cidade" name="cidade.id" optionValue="nome" from="${ihotel.Cidade.list()}" optionKey="id" required="" value="${hospedeInstance?.cidade?.id}" class="many-to-one"/>
</div>

<div class="fieldcontain ${hasErrors(bean: hospedeInstance, field: 'email', 'error')} ">
	<label for="email">
		<g:message code="hospede.email.label" default="Email" />
		
	</label>
	<g:textField name="email" value="${hospedeInstance?.email}"/>
</div>



